//package com.sicent.support.api;
//
//import com.alibaba.fastjson.JSON;
//import org.beetl.core.Configuration;
//import org.beetl.core.GroupTemplate;
//import org.beetl.core.Template;
//import org.beetl.core.resource.FileResourceLoader;
//
//import java.io.IOException;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * Created by jl.hu on 2017/4/1.
// */
//public class ResetfulApiDocHelper {
//
//    public static void main(String[] args) throws IOException {
////        ClasspathResourceLoader resourceLoader = new ClasspathResourceLoader("com.sicent.support.api.doc");
////        Configuration cfg = Configuration.defaultConfiguration();
////        GroupTemplate gt = new GroupTemplate(resourceLoader, cfg);
////        Template t = gt.getTemplate("/resetfulapi.js");
////        String str = t.render();
////        System.out.println(str);
//
//
//        String root = "E:/Cluture_code/trunk/culture-support/src/main/java/com/sicent/support/api/doc";
//        FileResourceLoader resourceLoader = new FileResourceLoader(root,"utf-8");
//        Configuration cfg = Configuration.defaultConfiguration();
//        GroupTemplate gt = new GroupTemplate(resourceLoader, cfg);
//        Template t = gt.getTemplate("/resetfulapi.js");
//
//        ApiDescription apiDescription = new ApiDescription("用户新增","POST","/users");
//        apiDescription.setGroupName("用户");
//
//
//        ApiColumn username=      new ApiColumn("name","String","用户名");
//        ApiColumn  password =     new ApiColumn("name","String","密码");
//
//        List params = new ArrayList();
//        params.add(username);
//        params.add(password);
//
//        apiDescription.setParams(params);
//        apiDescription.setResults(params);
//        apiDescription.setSuccessExample(JSON.toJSONString(username));
//
//
//        t.binding("apidesp",apiDescription);
////
//////在模板里
////        <%
////        for(user in list){
////            %>
////            hello,${user.name};
////            <% } %>
//
//        String str = t.render();
//        System.out.println(str);
//    }
//}
